package com.bella.api.system.dao.mapper.ext;

import com.bella.api.system.dao.mapper.AuthRoleMenuMapper;
import com.bella.api.system.dao.model.AuthRoleMenu;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AuthRoleMenuExtendMapper extends AuthRoleMenuMapper {
    /**
     * 批量添加角色菜单
     *
     * @param list
     */
    void batchAdd(List<AuthRoleMenu> list);

    /**
     * 根据角色Id删除角色菜单
     * @param roleId
     */
    void deleteRoleMenuByRoleId(@Param("roleId")Integer roleId);
     /**
     * 根据菜单id删除角色菜单
     * @param menuId
     */
    void deleteRoleMenuByMenuId(@Param("menuId")Integer menuId);

    /**
     * 获取角色菜单
     *
     * @param roleId
     * @return
     */
    List<AuthRoleMenu> getRoleMenuList(@Param("roleId") Integer roleId);
}